package com.zy.fcs.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * 树形结构节点
 *
 * @author zhanghengchang
 * @date 2018/3/6
 */
@Data
public class ZtreeNode {

    private Long id;

    private String uri;

    private String uriDisp;

    private String name;

    private boolean open;

    @JSONField(name = "isParent")
    private boolean isParent;

    private List<ZtreeNode> children;

    public ZtreeNode() {
    }

    public ZtreeNode(String uri, String uriDisp, String name, boolean open, boolean isParent) {
        this.uri = uri;
        this.uriDisp = uriDisp;
        this.name = name;
        this.open = open;
        this.isParent = isParent;
    }

    public ZtreeNode(Long id, String uri, String uriDisp, String name, boolean open, boolean isParent) {
        this.id = id;
        this.uri = uri;
        this.uriDisp = uriDisp;
        this.name = name;
        this.open = open;
        this.isParent = isParent;
    }
}
